package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Description:
 * @Author: ZHl
 * @Date: 2022-09-11 14:26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_employee")
@ApiModel(value = "员工实体类")
public class Employee extends BaseDomain{

    //登录帐号
    private String username;
    //邮箱
    private String email;
    //手机号
    private String phone;
    //登录密码
    private String password;
    //年龄
    private Integer age;
    //1待审核；2审核通过；3激活成功；4审核驳回（关闭）
    private Integer state;
    //关联的部门ID
    private Long departmentId;
    //关联的登录信息ID
    private Long logininfoId;
    //关联的店铺ID
    private Long shopId;
    //员工的上级ID
    private Long parentId;
    //员工的上级经理ID
    private Long managerId;

    //关联的部门名称
    @Transient
    private String departmentName;


}
